{% extends 'frame.html' %}

{% block right-container %}
    <div class="right-container" style="text-align: center;">
        <table class="table" style="text-align: left">
            <tr>
                <th>Id</th>
                <th>操作用户</th>
                <th>操作内容</th>
                <th>操作时间</th>
            </tr>
        {{ contacts.full_name | upper }}<br/>
            {% for m in contacts %}
            <tr>
                <td>{{ m.id }}</td>
                <td>{{ m.OptUser }}</td>
                <td>{{ m.Content }}</td>
                <td class="Updatetime">
                    <script>
                        document.write(new Date({{ m.UpdateTime }} * 1000).toLocaleString())
                    </script>
                </td>
            </tr>
            {% endfor %}
        </table>
        <div class="pagination">
            <span class="step-links">
                {% if contacts.has_previous %}
                    <a href="?page={{ contacts.previous_page_number }}">上一页</a>
                {% endif %}
                <span class="current">
                    第 {{ contacts.number }} 页，共 {{ contacts.paginator.num_pages }}页
                </span>
                {% if contacts.has_next %}
                    <a href="?page={{ contacts.next_page_number }}">下一页</a>
                {% endif %}
            </span>
        </div>
    </div>

{% endblock %}

{% block customjs %}
    <script type="text/javascript">

    </script>
{% endblock %}